package com.windy.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sun.jnlp.BasicServiceImpl;
import com.windy.app.entity.User;
import com.windy.app.vo.Result;
import com.windy.dao.UserMapper;
import com.windy.service.IUserService;
import org.springframework.stereotype.Service;

@Service("userService")
public class UserServiceImpl extends ServiceImpl<UserMapper,User> implements IUserService {
    @Override
    public Result<User> findByUserName(String username) {
        System.out.println(username);
        User user = this.baseMapper.selectById(username);
        if (user!=null){
            return new Result<User>(true,"查询成功",user);
        }
        return new Result<User>(false,"查询失败");
    }
}
